	
//页面加载查询所有的通知
$.ajax({
	url:path+'/tongzhi/getAllTongzhi',
	dataType:'json',
	type:'POST',
	success:function(data) {  
		var str = "";
		console.log(data)
		$(data).each(function(index,element){
			index +=1 ;

			str += '<tr onclick="getTongZhiById('+this.id+')"><td width="5%" style="text-align:center;">'+index+'</td><td width="60%" style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;" >'+this.biaoti+'</td><td width="20%" style="text-align:center;">'+this.fabusjstr+'</td>'+
					'<td width="15%" class="g-tz-td-wd" style="text-align:center;">'+this.yidubz+'</td></tr>';
		});
		$('#tableTongzhi').append(str);
	}
});

function getTongZhiById(id){
	$.ajax({
		url:path+'/tongzhi/zhiweiyd',
		dataType:'json',
		type:'POST',
		data:{tongzhiid:id},
		success:function(data) { 
			window.location.href=path+"/jump/toTongzhixq?ID="+id; 
			return false;
		}
	});
}